<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>GPL: inc/xml/xml.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="coffee_bean_77.268292682927px_1164279_easyicon.net.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">GPL
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="pages.html"><span>相关页面</span></a></li>
      <li><a href="namespaces.html"><span>命名空间</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_bfccd401955b95cf8c75461437045ac0.html">inc</a></li><li class="navelem"><a class="el" href="dir_10c92cca9a932075c4364f1a1d5e2875.html">xml</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">xml.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="xml_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacegpl.html">gpl</a></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;{</div><div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="classgpl_1_1xml.html">  134</a></span>&#160;    <span class="keyword">class </span><a class="code" href="classgpl_1_1xml.html">xml</a>{</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        <a class="code" href="classgpl_1_1xml.html#abfca0a27d3d13cf517461bec03e973d8">xml</a>();</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classgpl_1_1xml.html#a912fdf91ccb38361957d0474be7ded03">~xml</a>();</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#a652424917641945a6ff30ef796792443">openXPath</a>(<span class="keyword">const</span> std::string&amp; fileName, <span class="keywordtype">int</span> blank = 1);</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#a652424917641945a6ff30ef796792443">openXPath</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fileName, <span class="keywordtype">int</span> blank = 1);</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#af5fc1b311824ff62a37efe5ecb17ec07">openBufferXPath</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* buffer, <span class="keywordtype">int</span> size = -1, <span class="keywordtype">int</span> blank = 1);</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classgpl_1_1xml.html#af9a13758e0c526858768b69f1691e531">closeXPath</a>();</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#a4be83f9c21b3aadeb36a88a28c5e3df6">setXPath</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* xpath);</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#a0e50213d0746cebfedd81ca21222582a">getXPathResultSet</a>(std::multimap&lt;std::string, std::string&gt;&amp; resultSet);</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#a0e50213d0746cebfedd81ca21222582a">getXPathResultSet</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* xpath, std::multimap&lt;std::string, std::string&gt;&amp; resultSet);</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#a219d63ef6c84eee440b063ccdce4265b">getEntityValue</a>(<span class="keyword">const</span> std::string&amp; entName, std::map&lt;std::string, std::string&gt;&amp; props);</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#ac570b83f537588b4680d976d4c7ee905">insertNodeByXPath</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* nodeName, <span class="keyword">const</span> <span class="keywordtype">char</span>* nodeValue, <span class="keywordtype">int</span> length = -1);</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#ac570b83f537588b4680d976d4c7ee905">insertNodeByXPath</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* xpath, <span class="keyword">const</span> <span class="keywordtype">char</span>* nodeName, <span class="keyword">const</span> <span class="keywordtype">char</span>* nodeValue, <span class="keywordtype">int</span> length = -1);</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#ae5b23f93ed6c45aee218555457a9ea72">insertPropertyByXPath</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* propName, <span class="keyword">const</span> <span class="keywordtype">char</span>* propValue, <span class="keywordtype">int</span> length = -1);</div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#ae5b23f93ed6c45aee218555457a9ea72">insertPropertyByXPath</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* xpath, <span class="keyword">const</span> <span class="keywordtype">char</span>* propName, <span class="keyword">const</span> <span class="keywordtype">char</span>* propValue, <span class="keywordtype">int</span> length = -1);</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#a24b3e5a366992b35bb49e9c338468ce0">updateNodeByXPath</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* nodeName, <span class="keyword">const</span> <span class="keywordtype">char</span>* nodeValue, <span class="keywordtype">int</span> length = -1);</div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#a24b3e5a366992b35bb49e9c338468ce0">updateNodeByXPath</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* xpath, <span class="keyword">const</span> <span class="keywordtype">char</span>* nodeName, <span class="keyword">const</span> <span class="keywordtype">char</span>* nodeValue, <span class="keywordtype">int</span> length = -1);</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#a12f8e0938dce911b64c332887e803d7d">updatePropertyByXPath</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* propName, <span class="keyword">const</span> <span class="keywordtype">char</span>* propValue, <span class="keywordtype">int</span> length = -1);</div><div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#a12f8e0938dce911b64c332887e803d7d">updatePropertyByXPath</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* xpath, <span class="keyword">const</span> <span class="keywordtype">char</span>* propName, <span class="keyword">const</span> <span class="keywordtype">char</span>* propValue, <span class="keywordtype">int</span> length = -1);</div><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#a83b4333d0421bcdd348f557626b74e85">eraseNodeByXPath</a>();</div><div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#a83b4333d0421bcdd348f557626b74e85">eraseNodeByXPath</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* xpath);</div><div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#a633a2e5cf5449c069264b0ce43fd4faf">erasePropertyByXPath</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* propName);</div><div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#a633a2e5cf5449c069264b0ce43fd4faf">erasePropertyByXPath</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* xpath, <span class="keyword">const</span> <span class="keywordtype">char</span>* propName);</div><div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;</div><div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#a76d677383096c9a148929967bad4dd27">saveXmlToFileXPath</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fname = <span class="stringliteral">&quot;&quot;</span>, <span class="keyword">const</span> <span class="keywordtype">char</span>* encoding = <span class="stringliteral">&quot;&quot;</span>, <span class="keywordtype">int</span> format = 1);</div><div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#aecc581c8a0161089f1469b44a1424db9">saveXmlToBufferXPath</a>(std::string&amp; buffStr, <span class="keyword">const</span> <span class="keywordtype">char</span>* encoding = <span class="stringliteral">&quot;&quot;</span>, <span class="keywordtype">int</span> format = 1);</div><div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#adf9a9c52c234b5823b89e801d9a644f9">dumpXPath</a>(FILE* f = stdout);</div><div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#abee93f282b78e939be1f2547be5a56ff">createXml</a>(std::string name = <span class="stringliteral">&quot;&quot;</span>, std::string url = <span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#a524aa93f951b5570bf3a42ca9a405656">addElement</a>(std::string par,std::string name,std::string v=<span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#a7e8aa82a65e711d0657ae27f3a2ebafe">addAttribute</a>(std::string par,std::string name,std::string v);</div><div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#a18682a529eda2eb64b5907a91ef4cbde">saveXmlToFile</a>(std::string filename,std::string encode);</div><div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgpl_1_1xml.html#a6e119696c79c560c5d5f3eabf3e21a8a">saveXmlToBuffer</a>(std::string &amp;src);</div><div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00518"></a><span class="lineno"><a class="line" href="classgpl_1_1xml.html#ac104bfabf19926674bb65c205f5e4480">  518</a></span>&#160;        <span class="keyword">class </span>LibXml;</div><div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;        LibXml* <a class="code" href="classgpl_1_1xml.html#ac104bfabf19926674bb65c205f5e4480">m_xml</a>;</div><div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;    <span class="keyword">private</span>:</div><div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;        <span class="keywordtype">void</span> ltoa(<span class="keyword">const</span> <span class="keywordtype">long</span>&amp; l, std::string&amp; str);</div><div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;        std::string m_fileName;</div><div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;    };</div><div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;}</div><div class="ttc" id="classgpl_1_1xml_html_adf9a9c52c234b5823b89e801d9a644f9"><div class="ttname"><a href="classgpl_1_1xml.html#adf9a9c52c234b5823b89e801d9a644f9">gpl::xml::dumpXPath</a></div><div class="ttdeci">bool dumpXPath(FILE *f=stdout)</div><div class="ttdoc">将xml文件导出到指定的文件流 </div></div>
<div class="ttc" id="classgpl_1_1xml_html_a524aa93f951b5570bf3a42ca9a405656"><div class="ttname"><a href="classgpl_1_1xml.html#a524aa93f951b5570bf3a42ca9a405656">gpl::xml::addElement</a></div><div class="ttdeci">bool addElement(std::string par, std::string name, std::string v=&quot;&quot;)</div><div class="ttdoc">创建元素 </div></div>
<div class="ttc" id="namespacegpl_html"><div class="ttname"><a href="namespacegpl.html">gpl</a></div><div class="ttdef"><b>Definition:</b> <a href="json_8h_source.html#l00017">json.h:17</a></div></div>
<div class="ttc" id="classgpl_1_1xml_html"><div class="ttname"><a href="classgpl_1_1xml.html">gpl::xml</a></div><div class="ttdoc">XML文档处理类 </div><div class="ttdef"><b>Definition:</b> <a href="xml_8h_source.html#l00134">xml.h:134</a></div></div>
<div class="ttc" id="classgpl_1_1xml_html_ac570b83f537588b4680d976d4c7ee905"><div class="ttname"><a href="classgpl_1_1xml.html#ac570b83f537588b4680d976d4c7ee905">gpl::xml::insertNodeByXPath</a></div><div class="ttdeci">bool insertNodeByXPath(const char *nodeName, const char *nodeValue, int length=-1)</div><div class="ttdoc">在当前XPATH下面插入一个子节点. </div></div>
<div class="ttc" id="classgpl_1_1xml_html_a76d677383096c9a148929967bad4dd27"><div class="ttname"><a href="classgpl_1_1xml.html#a76d677383096c9a148929967bad4dd27">gpl::xml::saveXmlToFileXPath</a></div><div class="ttdeci">bool saveXmlToFileXPath(const char *fname=&quot;&quot;, const char *encoding=&quot;&quot;, int format=1)</div><div class="ttdoc">保存xml数据到文件中 </div></div>
<div class="ttc" id="classgpl_1_1xml_html_a18682a529eda2eb64b5907a91ef4cbde"><div class="ttname"><a href="classgpl_1_1xml.html#a18682a529eda2eb64b5907a91ef4cbde">gpl::xml::saveXmlToFile</a></div><div class="ttdeci">bool saveXmlToFile(std::string filename, std::string encode)</div><div class="ttdoc">保存xml数据为文件 </div></div>
<div class="ttc" id="classgpl_1_1xml_html_a0e50213d0746cebfedd81ca21222582a"><div class="ttname"><a href="classgpl_1_1xml.html#a0e50213d0746cebfedd81ca21222582a">gpl::xml::getXPathResultSet</a></div><div class="ttdeci">bool getXPathResultSet(std::multimap&lt; std::string, std::string &gt; &amp;resultSet)</div><div class="ttdoc">返回当前XPATH所查询的结果集 </div></div>
<div class="ttc" id="classgpl_1_1xml_html_abfca0a27d3d13cf517461bec03e973d8"><div class="ttname"><a href="classgpl_1_1xml.html#abfca0a27d3d13cf517461bec03e973d8">gpl::xml::xml</a></div><div class="ttdeci">xml()</div><div class="ttdoc">构造函数 </div></div>
<div class="ttc" id="classgpl_1_1xml_html_a4be83f9c21b3aadeb36a88a28c5e3df6"><div class="ttname"><a href="classgpl_1_1xml.html#a4be83f9c21b3aadeb36a88a28c5e3df6">gpl::xml::setXPath</a></div><div class="ttdeci">bool setXPath(const char *xpath)</div><div class="ttdoc">设置XPATH </div></div>
<div class="ttc" id="classgpl_1_1xml_html_af5fc1b311824ff62a37efe5ecb17ec07"><div class="ttname"><a href="classgpl_1_1xml.html#af5fc1b311824ff62a37efe5ecb17ec07">gpl::xml::openBufferXPath</a></div><div class="ttdeci">bool openBufferXPath(const char *buffer, int size=-1, int blank=1)</div><div class="ttdoc">打开并解析缓冲中的xml文档 </div></div>
<div class="ttc" id="classgpl_1_1xml_html_ac104bfabf19926674bb65c205f5e4480"><div class="ttname"><a href="classgpl_1_1xml.html#ac104bfabf19926674bb65c205f5e4480">gpl::xml::m_xml</a></div><div class="ttdeci">LibXml * m_xml</div><div class="ttdef"><b>Definition:</b> <a href="xml_8h_source.html#l00518">xml.h:518</a></div></div>
<div class="ttc" id="classgpl_1_1xml_html_a83b4333d0421bcdd348f557626b74e85"><div class="ttname"><a href="classgpl_1_1xml.html#a83b4333d0421bcdd348f557626b74e85">gpl::xml::eraseNodeByXPath</a></div><div class="ttdeci">bool eraseNodeByXPath()</div><div class="ttdoc">在当前XPATH下面删除最后一个节点树. </div></div>
<div class="ttc" id="classgpl_1_1xml_html_a912fdf91ccb38361957d0474be7ded03"><div class="ttname"><a href="classgpl_1_1xml.html#a912fdf91ccb38361957d0474be7ded03">gpl::xml::~xml</a></div><div class="ttdeci">virtual ~xml()</div><div class="ttdoc">析构函数 </div></div>
<div class="ttc" id="classgpl_1_1xml_html_a633a2e5cf5449c069264b0ce43fd4faf"><div class="ttname"><a href="classgpl_1_1xml.html#a633a2e5cf5449c069264b0ce43fd4faf">gpl::xml::erasePropertyByXPath</a></div><div class="ttdeci">bool erasePropertyByXPath(const char *propName)</div><div class="ttdoc">在当前XPATH下面删除一个节点的属性 </div></div>
<div class="ttc" id="classgpl_1_1xml_html_a12f8e0938dce911b64c332887e803d7d"><div class="ttname"><a href="classgpl_1_1xml.html#a12f8e0938dce911b64c332887e803d7d">gpl::xml::updatePropertyByXPath</a></div><div class="ttdeci">bool updatePropertyByXPath(const char *propName, const char *propValue, int length=-1)</div><div class="ttdoc">在当前XPATH下面更新一个节点的属性. </div></div>
<div class="ttc" id="classgpl_1_1xml_html_ae5b23f93ed6c45aee218555457a9ea72"><div class="ttname"><a href="classgpl_1_1xml.html#ae5b23f93ed6c45aee218555457a9ea72">gpl::xml::insertPropertyByXPath</a></div><div class="ttdeci">bool insertPropertyByXPath(const char *propName, const char *propValue, int length=-1)</div><div class="ttdoc">在当前XPATH下面插入一个节点的属性. </div></div>
<div class="ttc" id="classgpl_1_1xml_html_abee93f282b78e939be1f2547be5a56ff"><div class="ttname"><a href="classgpl_1_1xml.html#abee93f282b78e939be1f2547be5a56ff">gpl::xml::createXml</a></div><div class="ttdeci">bool createXml(std::string name=&quot;&quot;, std::string url=&quot;&quot;)</div><div class="ttdoc">创建xml文档 </div></div>
<div class="ttc" id="classgpl_1_1xml_html_a24b3e5a366992b35bb49e9c338468ce0"><div class="ttname"><a href="classgpl_1_1xml.html#a24b3e5a366992b35bb49e9c338468ce0">gpl::xml::updateNodeByXPath</a></div><div class="ttdeci">bool updateNodeByXPath(const char *nodeName, const char *nodeValue, int length=-1)</div><div class="ttdoc">在当前XPATH下面更新一个节点. </div></div>
<div class="ttc" id="classgpl_1_1xml_html_a6e119696c79c560c5d5f3eabf3e21a8a"><div class="ttname"><a href="classgpl_1_1xml.html#a6e119696c79c560c5d5f3eabf3e21a8a">gpl::xml::saveXmlToBuffer</a></div><div class="ttdeci">bool saveXmlToBuffer(std::string &amp;src)</div><div class="ttdoc">保存xml数据为内存 </div></div>
<div class="ttc" id="classgpl_1_1xml_html_a219d63ef6c84eee440b063ccdce4265b"><div class="ttname"><a href="classgpl_1_1xml.html#a219d63ef6c84eee440b063ccdce4265b">gpl::xml::getEntityValue</a></div><div class="ttdeci">bool getEntityValue(const std::string &amp;entName, std::map&lt; std::string, std::string &gt; &amp;props)</div><div class="ttdoc">读取指定的实体相关属性 </div></div>
<div class="ttc" id="classgpl_1_1xml_html_af9a13758e0c526858768b69f1691e531"><div class="ttname"><a href="classgpl_1_1xml.html#af9a13758e0c526858768b69f1691e531">gpl::xml::closeXPath</a></div><div class="ttdeci">void closeXPath()</div><div class="ttdoc">关闭并释放xml文档 </div></div>
<div class="ttc" id="classgpl_1_1xml_html_aecc581c8a0161089f1469b44a1424db9"><div class="ttname"><a href="classgpl_1_1xml.html#aecc581c8a0161089f1469b44a1424db9">gpl::xml::saveXmlToBufferXPath</a></div><div class="ttdeci">bool saveXmlToBufferXPath(std::string &amp;buffStr, const char *encoding=&quot;&quot;, int format=1)</div><div class="ttdoc">保存xml数据输出到buff内存中 </div></div>
<div class="ttc" id="classgpl_1_1xml_html_a7e8aa82a65e711d0657ae27f3a2ebafe"><div class="ttname"><a href="classgpl_1_1xml.html#a7e8aa82a65e711d0657ae27f3a2ebafe">gpl::xml::addAttribute</a></div><div class="ttdeci">bool addAttribute(std::string par, std::string name, std::string v)</div><div class="ttdoc">创建元素属性 </div></div>
<div class="ttc" id="classgpl_1_1xml_html_a652424917641945a6ff30ef796792443"><div class="ttname"><a href="classgpl_1_1xml.html#a652424917641945a6ff30ef796792443">gpl::xml::openXPath</a></div><div class="ttdeci">bool openXPath(const std::string &amp;fileName, int blank=1)</div><div class="ttdoc">打开并解析xml文档 </div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
